package com.dmap.admin.po;

import java.io.Serializable;

public class UserToPermission implements Serializable {
    /**
     * 主键id
     * 表字段 : user_to_permission.id
     */
    private Long id;

    /**
     * 
     * 表字段 : user_to_permission.user_id
     */
    private Long userId;

    /**
     * 权限编号，eg: 01, 0101
     * 表字段 : user_to_permission.permission_number
     */
    private String permissionNumber;

    /**
     * 父级权限编号，eg: 01, 0101
     * 表字段 : user_to_permission.permission_parent_number
     */
    private String permissionParentNumber;

    /**
     * 权限名称
     * 表字段 : user_to_permission.permission_name
     */
    private String permissionName;

    /**
     * 权限描述
     * 表字段 : user_to_permission.permission_description
     */
    private String permissionDescription;

    /**
     * 权限URL地址
     * 表字段 : user_to_permission.permission_url
     */
    private String permissionUrl;

    /**
     * 是否允许编辑：TRUE允许（默认）,FALSE不允许
     * 表字段 : user_to_permission.allow_set
     */
    private Boolean allowSet;

    /**
     * 创建时间
     * 表字段 : user_to_permission.create_time
     */
    private Long createTime;

    /**
     * 最后更新时间
     * 表字段 : user_to_permission.update_time
     */
    private Long updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table user_to_permission
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_to_permission
     *
     * @mbggenerated
     */
    public UserToPermission(Long id, Long userId, String permissionNumber, String permissionParentNumber, String permissionName, String permissionDescription, String permissionUrl, Boolean allowSet, Long createTime, Long updateTime) {
        this.id = id;
        this.userId = userId;
        this.permissionNumber = permissionNumber;
        this.permissionParentNumber = permissionParentNumber;
        this.permissionName = permissionName;
        this.permissionDescription = permissionDescription;
        this.permissionUrl = permissionUrl;
        this.allowSet = allowSet;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_to_permission
     *
     * @mbggenerated
     */
    public UserToPermission() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user_to_permission.id
     *
     * @return the value of user_to_permission.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user_to_permission.id
     *
     * @param id the value for user_to_permission.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user_to_permission.user_id
     *
     * @return the value of user_to_permission.user_id
     *
     * @mbggenerated
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user_to_permission.user_id
     *
     * @param userId the value for user_to_permission.user_id
     *
     * @mbggenerated
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user_to_permission.permission_number
     *
     * @return the value of user_to_permission.permission_number
     *
     * @mbggenerated
     */
    public String getPermissionNumber() {
        return permissionNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user_to_permission.permission_number
     *
     * @param permissionNumber the value for user_to_permission.permission_number
     *
     * @mbggenerated
     */
    public void setPermissionNumber(String permissionNumber) {
        this.permissionNumber = permissionNumber == null ? null : permissionNumber.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user_to_permission.permission_parent_number
     *
     * @return the value of user_to_permission.permission_parent_number
     *
     * @mbggenerated
     */
    public String getPermissionParentNumber() {
        return permissionParentNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user_to_permission.permission_parent_number
     *
     * @param permissionParentNumber the value for user_to_permission.permission_parent_number
     *
     * @mbggenerated
     */
    public void setPermissionParentNumber(String permissionParentNumber) {
        this.permissionParentNumber = permissionParentNumber == null ? null : permissionParentNumber.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user_to_permission.permission_name
     *
     * @return the value of user_to_permission.permission_name
     *
     * @mbggenerated
     */
    public String getPermissionName() {
        return permissionName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user_to_permission.permission_name
     *
     * @param permissionName the value for user_to_permission.permission_name
     *
     * @mbggenerated
     */
    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName == null ? null : permissionName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user_to_permission.permission_description
     *
     * @return the value of user_to_permission.permission_description
     *
     * @mbggenerated
     */
    public String getPermissionDescription() {
        return permissionDescription;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user_to_permission.permission_description
     *
     * @param permissionDescription the value for user_to_permission.permission_description
     *
     * @mbggenerated
     */
    public void setPermissionDescription(String permissionDescription) {
        this.permissionDescription = permissionDescription == null ? null : permissionDescription.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user_to_permission.permission_url
     *
     * @return the value of user_to_permission.permission_url
     *
     * @mbggenerated
     */
    public String getPermissionUrl() {
        return permissionUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user_to_permission.permission_url
     *
     * @param permissionUrl the value for user_to_permission.permission_url
     *
     * @mbggenerated
     */
    public void setPermissionUrl(String permissionUrl) {
        this.permissionUrl = permissionUrl == null ? null : permissionUrl.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user_to_permission.allow_set
     *
     * @return the value of user_to_permission.allow_set
     *
     * @mbggenerated
     */
    public Boolean getAllowSet() {
        return allowSet;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user_to_permission.allow_set
     *
     * @param allowSet the value for user_to_permission.allow_set
     *
     * @mbggenerated
     */
    public void setAllowSet(Boolean allowSet) {
        this.allowSet = allowSet;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user_to_permission.create_time
     *
     * @return the value of user_to_permission.create_time
     *
     * @mbggenerated
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user_to_permission.create_time
     *
     * @param createTime the value for user_to_permission.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user_to_permission.update_time
     *
     * @return the value of user_to_permission.update_time
     *
     * @mbggenerated
     */
    public Long getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user_to_permission.update_time
     *
     * @param updateTime the value for user_to_permission.update_time
     *
     * @mbggenerated
     */
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_to_permission
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", permissionNumber=").append(permissionNumber);
        sb.append(", permissionParentNumber=").append(permissionParentNumber);
        sb.append(", permissionName=").append(permissionName);
        sb.append(", permissionDescription=").append(permissionDescription);
        sb.append(", permissionUrl=").append(permissionUrl);
        sb.append(", allowSet=").append(allowSet);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}